<?php
namespace Project_725\View\Frontend\Helper;
use TwinPeaks\Core as Core;

class Page extends Core\CTemplate
{
	function __construct()
	{
		parent::__construct('@template/page');
	}
	
	/**
	 * @return CTemplate
	 */
	function getContent()
	{
		$rule = $this->getCurrentRule();
		if (!$rule)
			return new _404();
		
		switch ($rule->getId())
		{
			case \Project_725\FC_Frontend::INDEX_RID:
				return new Index();			
		}
	}
}
